package com.boot.system.fegin;

import com.boot.framework.common.R;
import com.boot.system.dto.SysUserDTO;
import com.boot.system.entity.SysUserEntity;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.service.annotation.*;


@HttpExchange("/user")
public interface SysUserClient {


    /**
     * 根据id查询用户
     * @param id
     * @return
     */
    @GetExchange("/{id}")
    R<SysUserDTO>  selectById(@PathVariable("id") String id);

    /**
     * 根据账号查询用户
     * @param username
     * @return
     */
    @GetExchange("/username/{username}")
    R<SysUserDTO>  selectByUsername(@PathVariable("username")String username);
}
